/***************************************************
 * utk filesystem
 * Author: sanghyeb lee slee91@utk.edu
 */

#ifndef CONST_H
#define CONST_H

#define MAX_TOTAL_ZONES 10 /* total number of zones */
#define MAX_DIRECT_ZONES 7 /* total number of direc zones*/

#define MAX_FILPS 128 /* max in-memory table */
#define MAX_INODES 64 /* max in-memory inode table*/

#define NO_BIT 0 /*no available bit*/

#define ROOT_INODE 0 /* inode number for root*/

#define BLOCK_SIZE 1024

#define UPDATE_ATIME 1
#define UPDATE_CTIME 2
#define UPDATE_MTIME 4

#define ZONE_ADDRESS_SIZE sizeof(zone_t)

#define INODE_BLOCK 0 /*inode block*/
#define DIRENTRY_BLOCK 1 /*directory block*/
#define INDIRECT_BLOCK 2 /*indirect block*/
#define MAP_BLOCK 3 /*bit map*/

#define MAX_FILENAME 252 

#endif
